<?php /* Smarty version Smarty-3.1.7, created on 2012-04-10 16:01:51
         compiled from ".\templates\comment_list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:239494f7a58dda154b3-07667773%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ef7915f994ba9be45a2f2a0da7252cefa3f430c0' => 
    array (
      0 => '.\\templates\\comment_list.tpl',
      1 => 1334041041,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '239494f7a58dda154b3-07667773',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_4f7a58ddd09c8',
  'variables' => 
  array (
    'rows' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f7a58ddd09c8')) {function content_4f7a58ddd09c8($_smarty_tpl) {?><html>
<head>
<?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</head>
<body>
<h1>SHONAN BBS 管理画面</h1>
<hr noshade size="1">
<div id="content">
  <div id="contentLeft">
    <h2>コメント一覧</h2>

    <div class="pager">
<?php echo $_smarty_tpl->getSubTemplate ("pager.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

    </div>

    <div class="tblData">
    <table>
    <tr>
      <th>ニックネーム</th>
      <th>投稿内容</th>
      <th>投稿時間</th>
      <th>編集</th>
    </tr>
<?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['rows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
    <tr>
      <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['nickname']);?>
</td>
      <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['content']);?>
</td>
      <td><?php echo $_smarty_tpl->tpl_vars['row']->value['created_at'];?>
</td>
      <td><a href="./comment_edit_input.php?id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['id'], ENT_QUOTES, 'UTF-8', true);?>
">編集</a>
      | <a href="./comment_delete.php?id=<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['row']->value['id'], ENT_QUOTES, 'UTF-8', true);?>
"
           onclick="return confirm('削除してよろしいですか？');">削除</a></td>
    </tr>
<?php } ?>
    </table>
    </div>
  </div>
  <div id="contentRight">
<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

  </div>
</div>
<div class="clr"></div>
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</body>
</html><?php }} ?>